package com.groupbuying.settleproducer.service;

import com.groupbuying.settleproducer.domain.SettleUshopFlowStoreDO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 优店商户资金流水表
 * 
 * @author cuich
 * @email cuichanghao@linku.com.cn
 * @date 2019-06-18 02:37:20
 * @des
 */

public interface SettleUshopFlowStoreService {
	
	SettleUshopFlowStoreDO get(String id);

	/*通过门店ID获取商户总金额*/
	BigDecimal getSumByStoreId(String storeId);

	/* 通过收银台ID获取商户当日余额*/
	BigDecimal getStoreBalanceByCheckstandId(String checkstandId );

	/* 通过收银台ID获取商户流水列表*/
	List<Map<String,Object>> getStoreFlowListByCheckstandId(Map<String, Object> map);

	List<SettleUshopFlowStoreDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);

	int countByTime(Map<String, Object> map);
	
	int save(SettleUshopFlowStoreDO settleUshopFlowStore);
	
	int update(SettleUshopFlowStoreDO settleUshopFlowStore);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

}
